BEEP

[Statement] - Generates sound


Syntax:

BEEP duration,pitch

Parameters:

duration=floating point value defining the duration in seconds

pitch=tone given in semitones above middle C using negative numbers for notes below middle C

Description:

Uses Spectrum 48 build-in speaker to generate a tone. nothing else can be executed while the tone is played

Examples:

REM 'Makes a beep
LET duration = 0.1
LET tone=5
BEEP duration,tone
REM 'tone was played

Notes:

See also:

---


Supported Plattforms:

ZX Spectrum